package com.example.gsp.mybatis;

import com.example.gsp.dao.SwitchDao;
import com.example.gsp.mybatis.session.DefaultSqlSession;
import com.example.gsp.mybatis.session.SqlSession;
import com.example.gsp.mybatis.session.SqlSessionFactory;
import org.junit.Test;


public class Demo2 {


    @Test
    public void testMapping(){
        SqlSessionFactory sqlSessionFactory = new SqlSessionFactory();
        SqlSession sqlSession = new DefaultSqlSession(sqlSessionFactory.getConf());
        SwitchDao switchDao = sqlSession.getMapper(SwitchDao.class);
        System.out.println(switchDao.selectSwitchMap());


    }


}
